public class Dog1 {
    public String name;
    public String color;

    public void bark(){

        System.out.println(name + " 汪汪~~~");
    }
    public void wag(){

        System.out.println(color + " 的尾巴左右摇摆");
    }

    public static void main(String[] args) {
        Dog1 dog = new Dog1();
        //Dog dog1 = new Dog();

        dog.name = " 小狗";
        dog.color = "brown";
        dog.bark();
        dog.wag();
        //System.out.println();
    }
}
